package com.jdiv;

/**
 * @author  Joyal
 */
public class JProgram implements Runnable, JConst {

/**
 * @uml.property  name="loop"
 */
private boolean loop=true;
private boolean begin=false;
/**
 * @uml.property  name="alive"
 */
private boolean alive=false;
public Thread hilo;

	public JProgram(){
		JDiv.program=this;
	}

	public void loop(){
			 loop=false;
   }

	/**
	 * @return
	 * @uml.property  name="loop"
	 */
	public boolean isLoop() {
		return loop;
	}
	  /**
	 * @return
	 * @uml.property  name="alive"
	 */
	public boolean isAlive() {
			return alive;
		}
	  public void run(){
			alive=true;
			loop();
			alive=false;
		}
}
